
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<html>
  <head>
      <title>用户管理</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />      
      <link href="../../../js/thickbox.css" rel="stylesheet" type="text/css" />
      <script src="../../../js/jqui/jquery-1.2.6.min.js" type="text/javascript"></script>
      <script src="../../../js/jqtool.js" type="text/javascript"></script>
      <script src="../../../js/ui.js" type="text/javascript"></script>
      <script src="../../../js/thickbox-compressed.js" type="text/javascript"></script>
         <link href="../../../css/Public.css"type="text/css" rel="stylesheet" />
       <link href="../../../css/PublicEdit.css"type="text/css" rel="stylesheet" /> 
      <SCRIPT src="../../../js/selectDate.js"></SCRIPT>
      <style type="text/css">
<!--
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {	color: #03515d;
	font-size: 12px;
}
.dleft{
  width:60px;
  border:#FF0000 1px solid;
}
.dright{
  width:100px;
  border:green 1px solid;
}
.sortHead{
    background-image: url(../../../images/updown.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
.sortUp{
    background-image: url(../../../images/desc.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
.sortDown{
    background-image: url(../../../images/asc.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}

#viewbox {
		position: absolute;
		left:320px;
		width: 450px;
		margin: 10px;
		padding: 20px 20px 20px;
		background: #eee;
		border: 2px solid #42CBDC;
}
-->
      </style>
      <script language="javascript">
	      $(window).bind('load', changeAct);
	       function changeAct() {
	           $("#pno").change( function(){ 
		                            if( !isnumeric($("#pno"),"必须输入数字") ){
									    $("#pno").val("");
									    return;
									}
									if ( $("#pno").val() < 1 ){
									    alert("页码必须大于0");
										$("#pno").val("");
										$("#pno").focus();
										return;
									}
								 });
         }
		 function toPage(){
		     if( $("#pno").val() == "" ){
			     alert("请输入页码");
				 $("#pno").focus();
				 return;
			 }			 
			 window.location.href = "/admin/user/userinfo?pno=" +  $("#pno").val();
		 }	
		 function delcfm()
			{
			    if(!confirm("确认要删除？"))
			    {
			        window.event.returnValue = false;
			    }
			}
			function ToAddCmd()
			{				
				window.location.href = "/admin/user/inputuser";
			}
	  </script>
</head>
  <body marginheight="0">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="30" background="../../../images/tab_05.gif">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="12" height="30"><img src="../../../images/tab_03.gif" width="12" height="30" /></td>
            <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="5%"><div align="center"><img src="../../../images/tb.gif" width="16" height="16" /></div></td>
                        <td width="95%" class="STYLE1"><span class="STYLE3">用户管理</span></td>
                      </tr>
                  </table></td><!--
                         <td width="54%" align="right"><a href="../upload/GetFeeModelCommandInfo?mfid=${param.mfid}"><span class="STYLE3">返回</span></a></td>
           
                  --><td width="54%" align="right">
                  <!--
                  <a href="../FeeModelManage/addCommand?rid=${param.rid}&t=${param.t}&p=${param.p}&pr=${param.pr}">
                 
                  <span class="STYLE3">添加</span></a>-->
                 
                   <input type="button" onclick="ToAddCmd()" class="button2_60" name="addcmd" value="新增用户"></td>
              </tr>
            </table>            
            </td>
            <td width="16"><img src="../../../images/tab_07.gif" width="16" height="30" /></td>
          </tr>
      </table>      
      </td>
    </tr>
    <tr>
      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
            <td width="8" background="../../../images/tab_12.gif">&nbsp;</td>
            <td>
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td valign="middle" class="STYLE1">
                    <label>
                    <!--<form name="qr" method="post" action="GetFeeModelCommandInfo">
                    <input type="text" size="50" name="mfid"/>
                    <input type="submit" name="button" id="button" value="查询">
                  </form>-->
                  </label>            
                  </td>
              </tr>
            </table>
			        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" id="sort_table" >
			   			 <tr id="sort_head">
								<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_Cname"><span class="STYLE1">中文名称</span></div></td>
								<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_name"><span class="STYLE1">用户登录名称</span></div></td>
								<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_cid"><span class="STYLE1">用户编号</span></div></td>
			            		<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_group"><span class="STYLE1">用户组</span></div></td>
								<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_time"><span class="STYLE1">用户状态</span></div></td>
								<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_cidct"><span class="STYLE1">创建时间</span></div></td>
			            		<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_Edit"><span class="STYLE1">修改</span></div></td>
								<td height="22" background="../../../images/bg.gif" bgcolor="#FFFFFF"><div align="center" id="cb_Delete"><span class="STYLE1">删除</span></div></td>
						 </tr> 
			                <c:forEach items="${list_UserInfo}" var="row">
			                <tr>			                	
			                 	  <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_ksCuserName"><span class="STYLE1">${row.ksCuserName}</span></div></td>  
			                 	  <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_longnum"><span class="STYLE1">${row.username}</span></div></td>   
				  				  <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_cid"><span class="STYLE1">${row.ksUserNo}</span></div></td> 
				                  <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_group"><span class="STYLE1">
				                  		<c:if test="${row.ksUserGroup==1}">技术人员</c:if>
		          						<c:if test="${row.ksUserGroup==2}">运营人员</c:if>
		          						<c:if test="${row.ksUserGroup==3}">管理人员</c:if>
		          						<c:if test="${row.ksUserGroup==4}">系统配置人员</c:if>
				                  </span></div></td>   
				  				  <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_command"><span class="STYLE1">
				  				 		 <c:if test="${row.ksStatus==0}">关闭</c:if>
		          						<c:if test="${row.ksStatus==1}">开放</c:if>
		          						</span></div></td>
				  				   <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_cidct"><span class="STYLE1">${row.ksCreateTime}</span></div></td> 
				               	   <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_operate"><a href="/admin/user/initedit?uid=${row.ksUserId}&pno=${pno}">修改</a></div></td>   
 								  <td height="22" bgcolor="#FFFFFF"><div align="center" id="cb_Delete"><a href="/admin/user/deleteuser?uid=${row.ksUserId}&pno=${pno}" onclick="delcfm()">删除</a></div></td> 
          	    		    </tr>
			                </c:forEach>
			         </table>
          </td>
            <td width="8" background="../../../images/tab_15.gif">&nbsp;</td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td height="35" background="../../../images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="12" height="35"><img src="../../../images/tab_18.gif" width="12" height="35" /></td>
            <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
               <tr>
                   <td class="STYLE4">&nbsp;&nbsp;共有 ${PAGER.totoalCnt} 条记录，当前第 ${PAGER.curPage}/${PAGER.totoalPage} 页</td>
                  <td><table border="0" align="right" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="40"><a href="/admin/user/userinfo"><img src="../../../images/first.gif" width="37" height="15" border="0" /></a></td>
                        <td width="45"><a href="/admin/user/userinfo?pno=${PAGER.prePage}"><img src="../../../images/back.gif" width="43" height="15" border="0" /></a></td>
                        <td width="45"><a href="/admin/user/userinfo?pno=${PAGER.nextPage}"><img src="../../../images/next.gif" width="43" height="15" border="0" /></a></td>
                        <td width="40"><a href="/admin/user/userinfo?pno=${PAGER.totoalPage}"><img src="../../../images/last.gif" width="37" height="15" border="0" /></a></td>
                        <td width="100"><div align="center"><span class="STYLE1">转到第
                          <input name="pno" id="pno" type="text" size="4" style="height:16px; width:20px; border:1px solid #999999;" />
                          页 </span></div></td>
                        <td width="40"><img src="../../../images/go.gif" width="37" height="15"  style="cursor:hand" onClick="toPage()" border="0"/></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
            <td width="16"><img src="../../../images/tab_20.gif" width="16" height="35" /></td>
          </tr>
      </table>
      </td>
    </tr>
  </table>
</body>
</html>
